<?php if($section->getHomeSection()->getHtml() != ''): ?>
    <div class="message">
        <?php echo html_entity_decode($section->getHomeSection()->getHtml()) ?>
    </div>
<?php endif; ?>
<hr class="separator">
<?php for ($i = 1; $i <= $section->getPositionCount(); $i++): ?>
    <?php if(isset($elements[$i])): ?>
        <?php include_partial('render'.$elements[$i]->getType()->getType(),
                array(
                    strtolower($elements[$i]->getType()->getType()) => $elements[$i],
                    'portal' => $portal,
                    'hasBigScreen' => $hasBigScreen
                ))?>
    <?php endif; ?>
    <?php if($i != $section->getPositionCount()): ?>
        <hr class="separator">
    <?php endif; ?>
<?php endfor;?>